package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class IntervalLiteral implements GeneralLiteral {

    private int beginIndex;
    private int endIndex;
    private Sign sign;
    private String intervalString;
    private IntervalQualifier intervalQualifier;

    public IntervalLiteral(int beginIndex, int endIndex, Sign sign, String intervalString, IntervalQualifier intervalQualifier) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.sign = sign;
        this.intervalString = intervalString;
        this.intervalQualifier = intervalQualifier;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public Sign getSign() {
        return sign;
    }

    public String getIntervalString() {
        return intervalString;
    }

    public IntervalQualifier getIntervalQualifier() {
        return intervalQualifier;
    }

}
